home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / include / scribus-ng / sctablewidget.h < prev    next >
Encoding:
C/C++ Source or Header  |  2007-06-18  |  897 b   |  36 lines

  1. /*
  2. For general Scribus (>=1.3.2) copyright and licensing information please refer
  3. to the COPYING file provided with the program. Following this notice may exist
  4. a copyright and/or license notice that predates the release of Scribus 1.3.2
  5. for which a new license (GPL+exception) is in place.
  6. */
  7. #ifndef SCTABLEWIDGET_H
  8. #define SCTABLEWIDGET_H
  9.  
  10. #include <QTableWidget>
  11. #include <QEvent>
  12. #include <QHash>
  13. #include <QPair>
  14.  
  15.  
  16. class ScTableWidget : public QTableWidget
  17. {
  18.     Q_OBJECT
  19.  
  20.     public:
  21.         ScTableWidget ( QWidget * parent = 0 );
  22.         ScTableWidget ( int rows, int columns, QWidget * parent = 0 );
  23.         ~ScTableWidget ();
  24.         void setCellWidget ( int row, int column, QWidget * widget );
  25. #if QT_VERSION  >= 0x040300
  26.         void removeCellWidget ( int row, int column );
  27. #endif
  28.     protected:
  29.         bool eventFilter(QObject *obj, QEvent *event);
  30.  
  31.     private:
  32.         QHash<QWidget*, QPair<int, int> > widgetPositions;
  33. };
  34.  
  35. #endif
  36.